package com.example.recruitment_website.repository;

import com.example.recruitment_website.domain.User;
import com.example.recruitment_website.domain.Wine;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface WineRepository extends JpaRepository<Wine,Integer> {

//    @Query(value = "select * from wine a where a.wine_sort = ?1",nativeQuery = true)
//    List<Wine> findByOpen_id(String sort);

    Page<Wine> findAll(Specification<Wine> specification, Pageable pageable);

}
